package com.jianyushe.jianyushebasecommon.exception;

/**
 * @author Create by Alvin
 * @Description 自定义公共异常类
 * @date 2022-04-23 10:27
 */
public class CommonException extends RuntimeException {
    private final String errorCode;

    public CommonException(String message){
        super(message);
        this.errorCode = "fail";
    }
    public CommonException(String errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return this.errorCode;
    }
}
